package com.neutech.neufin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neutech.po.SettleCategory;
@Service
public class SettleCategoryServiceImpl implements com.neutech.neufin.service.SettleCategoryService{
	@Autowired
	private com.neutech.neufin.mapper.SettleCategoryMapper settleCategoryMapper;
	@Override
	public int addNewSettle(SettleCategory settleCategory) {
		// TODO Auto-generated method stub
		int num = settleCategoryMapper.addNewSettle(settleCategory);
		return num;
	}
	@Override
	public int updateSettle(SettleCategory settleCategory) {
		return settleCategoryMapper.updateSettle(settleCategory);
	}
	@Override
	public int deleteSettleById(int id) {
		// TODO Auto-generated method stub
		return settleCategoryMapper.deleteSettleById(id);

	}
	@Override
	public SettleCategory findSettleById(int id) throws Exception {
		// TODO Auto-generated method stub
		return settleCategoryMapper.findSettleById(id);
	}
	@Override
	public List<SettleCategory> queryAllSettle() {
		// TODO Auto-generated method stub
		return settleCategoryMapper.queryAllSettle();
	}
	@Override
	public SettleCategory updateAllSettle(SettleCategory settleCategory) {
		// TODO Auto-generated method stub
		return settleCategoryMapper.updateAllSettle(settleCategory);
	}
}
